﻿@{
    Layout = null;
}
@model   List<ElingOA6_Admin_DSJCJ.Model.SubOfficeDeptDocCls>
@{
    Dictionary<int, ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel> diccls = ViewData["diccls"] == null ? new Dictionary<int, ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>() : ViewData["diccls"] as Dictionary<int, ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>;
    Dictionary<int, List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>> dicentry = ViewData["entrys"] == null ? new Dictionary<int, List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>>() : ViewData["entrys"] as Dictionary<int, List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>>;
    
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>Index</title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
        <script src="../../../../Scripts/json2.js" type="text/javascript"></script>  
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Fckeditor/fckeditor.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/CJL.0.1.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/ImagePreview.js", true)" type="text/javascript"></script>
    <script>
        if (top.boardtop) {
            top.boardtop.head_txt.innerText = "科室导航管理";
        }
    </script>
    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }, new StyleSheet { ExtensionType = ExtensionType.UploadControl, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
                new Script { ExtensionType = ExtensionType.ListBox }, new Script { ExtensionType = ExtensionType.UploadControl }
)
    <script type="text/javascript">



        $(document).ready(function () {

            var hdjsAlert = $("#hdjsAlert").val();

            var fmode = '@ViewData["fmode"]'
            if (fmode == "F") {
                $("#isflashupload").text("已上传文件");
                $("#uploadtable tr[id='flashtr']").css("display", "block");
                $("#uploadtable tr[id='pictr']").css("display", "none");
                var upstr = $("#uploadtable td[id='picup']").html();
                $("#uploadtable td[id='picup']").html("");
                $("#uploadtable td[id='flashup']").html(upstr);
                $("#fmode").val("F");
                $("#picjy")[0].style.display = "none";
                // modestrl.SetValue("F")
                //  Changed();
            }
            if (hdjsAlert != "" & hdjsAlert != null) {
                alert(hdjsAlert);
            }
            //            var upctrl = ASPxClientUploadControl.Cast("templTopPicPathUpload");
            //            upctrl.ClearText();

        });
        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnSave":
                    {
                        //保存
                        save()
                        break;
                    }
                case "btnDelete":
                    {
                        //取消
                        window.location.reload();
                        break;
                    }
                case "btnAdd":
                    {
                        //添加新栏目
                        adddoccls();
                        break;
                    }
            }
        }
        //编辑主栏目
        function chooseDocCls(is) {
            var DicClsJson = $("#hDicClsJson").val();
            if (DicClsJson != "") {
                var dicEntryModel = JSON.parse(DicClsJson);

                var entryModel = dicEntryModel[is];
                var arrdoc = new Array();
                arrdoc.push(entryModel)
                var obj = new Object();
                obj.Value = JSON.stringify(arrdoc);
                var returnValue = window.showModalDialog(rootPath + "/Admin/Dialog/DocClsChooseTreeExt?selectMode=1&checkboxMode=false", obj, "dialogWidth=450px;dialogHeight=550px");
                if (typeof (returnValue) != "undefined") {
                    var treeModelList = JSON.parse(returnValue);
                    dicEntryModel[is] = treeModelList[0];
                    $("#hDicClsJson").val(JSON.stringify(dicEntryModel));
                    var showText = "";
                    for (var i = 0; i < treeModelList.length; i++) {
                        showText += treeModelList[i].Value + ",";
                    }
                    if (showText != "") {
                        showText = showText.substring(0, showText.lastIndexOf(','));
                    }
                    var txtVal = ASPxClientButtonEdit.Cast("FirstDocCls_" + is);

                    txtVal.SetText(showText);
                }
            }
        }



        /*top图片预览*/
        function previewTopImg() {

            var fmd = $("#fmode").val();
            var upctrl = ASPxClientUploadControl.Cast("templTopPicPathUpload");
            var txt = upctrl.GetText();

            var ext = txt.substring(txt.lastIndexOf(".") + 1);
            if ((ext == "" | ext == null) & txt != null & txt != "") {

                upctrl.Cancel();
                upctrl.ClearText();
                alert("请上传正确的文件格式");
                return;
            }
            var l = ext.toLowerCase();
            if (fmd == "P") {
                if ((l != "png" & l != "jpeg" & l != "jpg" & l != "gif") & txt != null & txt != "") {
                    upctrl.Cancel();
                    upctrl.ClearText();
                    alert("请上传正确的图片文件格式");
                    return;
                }
                if (txt != null & txt != "") {
                   // $("#isflashupload").text("");
                } 
            }
            if (fmd == "F") {

                if ((l != "swf") & txt != null & txt != "") {
                    upctrl.Cancel();
                    upctrl.ClearText();
                    alert("请上传正确的flash文件格式");
                    return;
                }
                if (txt != null & txt != "") {
                    $("#isflashupload").text("已上传文件");
                } 
            }
            var clienttemplTopPicPathUploadObj = ASPxClientUploadControl.Cast("templTopPicPathUpload");
            if (clienttemplTopPicPathUploadObj.GetText() != "") {

                var ip = new ImagePreview($$("templTopPicPathUpload_TextBox0_Input"), $$("imgTemplTopPicPath"), {
                });
                ip.img.src = ImagePreview.TRANSPARENT;
                ip.preview();
            }
            else {
                $("#imgTemplTopPicPath").attr("src", "");
            }
            $('#imgTemplTopPicPath').css("height", "100px");
            $('#imgTemplTopPicPath').css("width", "250px");
        }


        //编辑同时显示信息
        function chooseDocClsEntry(is) {

            var DicClsJson = $("#hdDicEntryJson").val();
            if (DicClsJson != "") {
                var dicEntryModel = JSON.parse(DicClsJson);

                var entryModel = dicEntryModel[is];

                var obj = new Object();
                obj.Value = JSON.stringify(entryModel);
                var returnValue = window.showModalDialog(rootPath + "/Admin/Dialog/DocClsChooseTree", obj, "dialogWidth=450px;dialogHeight=550px");
                if (typeof (returnValue) != "undefined") {
                    var treeModelList = JSON.parse(returnValue);
                    dicEntryModel[is] = treeModelList;
                    $("#hdDicEntryJson").val(JSON.stringify(dicEntryModel));
                    var showText = "";
                    for (var i = 0; i < treeModelList.length; i++) {
                        showText += treeModelList[i].Value + ",";
                    }
                    if (showText != "") {
                        showText = showText.substring(0, showText.lastIndexOf(','));
                    }
                    var txtVal = ASPxClientButtonEdit.Cast("NextDocCls_" + is);

                    txtVal.SetText(showText);
                }
                // alert(returnValue)
            }
        }
        /*保存*/
        function save() {

            //            $.ajax({
            //                type: "POST",
            //                url: '@Url.Action("Save", "SubOfficeDept")',
            //                data: $('#form1').serialize(),
            //                dataType: "json",
            //                error: function (data) {
            //                    alert(data.responseText);
            //                },
            //                success: function (data) {
            //                    alert("保存成功");
            //                }
            //            });

            var modestrl = ASPxClientComboBox.Cast("modeSelect");
            if (modestrl.GetValue() == "F") {
                var upctrl = ASPxClientUploadControl.Cast("templTopPicPathUpload");
                if ((upctrl.GetText() == null | upctrl.GetText() == "") & $("#savemode").val()!="F") {
                    alert("请上传flash文件");
                    return;
                }
            }
            form1.submit();
        }
        //添加新栏目
        function adddoccls() {

            var strDocCls = $("#hDocClsPartial").val();
            var trLenth = $("#tableAttach tr[name='trAttach']").length;
            var lastTrId = 0;
            if (trLenth == 0) {
                lastTrId = 0;
            }
            else {

                lastTrId = $("#tableAttach tr[name='trAttach']")[trLenth - 1].id.substring(5);
            }

            var rowIndex = parseInt(lastTrId) + 1;
            strDocCls = strDocCls.replace(new RegExp("FirstDocCls_Index", "gm"), "FirstDocCls_" + rowIndex);
            strDocCls = strDocCls.replace(new RegExp("NextDocCls_Index", "gm"), "NextDocCls_" + rowIndex);
            strDocCls = strDocCls.replace("trid_Index", "trid_" + rowIndex);
            strDocCls = strDocCls.replace("chooseDocCls(Index)", "chooseDocCls(" + rowIndex + ")");
            strDocCls = strDocCls.replace("chooseDocClsEntry(Index)", "chooseDocClsEntry(" + rowIndex + ")");
            strDocCls = strDocCls.replace("dellink(Index)", "dellink(" + rowIndex + ")");
            $("#tableAttach>tbody").append(strDocCls);
            var DicClsEntryJson = $("#hdDicEntryJson").val();
            var DicClsJson = $("#hDicClsJson").val();
            if (DicClsJson != "" & DicClsEntryJson != "") {
                var dicClsModel = JSON.parse(DicClsJson);
                var dicEntryModel = JSON.parse(DicClsEntryJson);
                var partsel = new Array();
                var treeModel = { "Text": "", "Value": "" };
                partsel.push(treeModel);
                dicEntryModel[rowIndex] = partsel;
                dicClsModel[rowIndex] = treeModel;
                $("#hdDicEntryJson").val(JSON.stringify(dicEntryModel));
                $("#hDicClsJson").val(JSON.stringify(dicClsModel));
                // dicEntryModel[Index]=;

            }
            //  $("#tableAttach").html(strDocCls);
        }
        //删除行
        function dellink(Index) {
            $("#tableAttach tr[id='trid_" + Index + "']").remove();
            var DicClsEntryJson = $("#hdDicEntryJson").val();
            var DicClsJson = $("#hDicClsJson").val();
            if (DicClsJson != "" & DicClsEntryJson != "") {
                var dicClsModel = JSON.parse(DicClsJson);
                var dicEntryModel = JSON.parse(DicClsEntryJson);
                var partsel = new Array();
                var treeModel = { "Text": "", "Value": "" };
                partsel.push(treeModel);
                dicEntryModel[Index] = partsel;
                dicClsModel[Index] = treeModel;
                $("#hdDicEntryJson").val(JSON.stringify(dicEntryModel));
                $("#hDicClsJson").val(JSON.stringify(dicClsModel));
                // dicEntryModel[Index]=;

            }
        }
        //切换顶部图片模式
        function Changed() {
            var modestrl = ASPxClientComboBox.Cast("modeSelect");
            // 


            if (modestrl.GetValue() == "F") {
                $("#uploadtable tr[id='flashtr']").css("display", "block");
                $("#uploadtable tr[id='pictr']").css("display", "none");
                var upstr = $("#uploadtable td[id='picup']").html();
                $("#uploadtable td[id='picup']").html("");
                $("#uploadtable td[id='flashup']").html(upstr);
                $("#fmode").val("F");
                var upctrl = ASPxClientUploadControl.Cast("templTopPicPathUpload");
                upctrl.Cancel();
                upctrl.ClearText();
                $("#picjy")[0].style.display = "none";
                 var fmode = $("#savemode").val();
                 if (fmode == "F") {
                     $("#isflashupload").text("已上传文件");
                var flhsrc='@ViewData["tosavepic"]'
                $("#tosavepic").val(flhsrc);
                 }
                 else {
                     $("#isflashupload").text("");
                 }
            }
            if (modestrl.GetValue() == "P") {
                $("#uploadtable tr[id='flashtr']").css("display", "none");
                $("#uploadtable tr[id='pictr']").css("display", "block");
                var upstr = $("#uploadtable td[id='flashup']").html();
                $("#uploadtable td[id='flashup']").html("");
                $("#uploadtable td[id='picup']").html(upstr);
                $("#fmode").val("P");
                var upctrl = ASPxClientUploadControl.Cast("templTopPicPathUpload");
                upctrl.Cancel();
                upctrl.ClearText();
                $("#picjy")[0].style.display = "block";
                $("#imgTemplTopPicPath").css("FILTER", "");
                $("#imgTemplTopPicPath").attr("src", $("#hdefpic").val());
                $("#tosavepic").val($("#hdefpic").val());
            }

        }

        function showDetails() {
            var details = document.getElementById("details");
            details.style.display = '';
            details.style.left = window.event.clientX;
            details.style.top = window.event.clientY;
            $("#popuppic").attr("src", window.event.srcElement.src);
        }

        function hideDetail() {
            var details = document.getElementById("details");
            details.style.display = 'none';
        }
       
    </script>
</head>
<body>
    @using (Html.BeginForm("Save", "SubOfficeDept", FormMethod.Post, new { id = "form1", @class = "tableFrom" }))
    {
        @Html.Hidden("savemode", @ViewData["fmode"]);
        @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
        @Html.Hidden("fmode", "P");
        @Html.Hidden("hindex", 1);
        <div class="floatToolMenu" id="toolMenu" style="z-index: 99;">
            <iframe style="position: absolute; visibility: inherit; top: 0px; left: 0px; width: 100%;
                height: 28px; z-index: -1; background-color: #00CCFF; border-width: 0px; filter='progid:dximagetransform.microsoft.alpha(style=0,opacity=0)';">
            </iframe>
            @Html.DevExpress().Menu(settings =>
       {
           settings.Name = "toolBarMenu";
           settings.ItemAutoWidth = false;
           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
           settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
           settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
           settings.Items.Add(item =>
           {
               item.Name = "btnSave";
               item.Text = "保存";
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/filesave.png");

           });
           settings.Items.Add(item =>
           {
               item.Name = "btnDelete";
               item.Text = "取消";
               item.ItemStyle.ForeColor = System.Drawing.Color.Red;
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/cancel.png");

           });
           settings.Items.Add(item =>
           {
               item.Name = "btnAdd";
               item.Text = "添加新栏目";
               item.ItemStyle.ForeColor = System.Drawing.Color.Red;
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/addNext.png");

           });
           settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
           settings.ItemLinkMode = ItemLinkMode.ContentBounds;
       }).GetHtml()
        </div>
         
         
        <fieldset>
            <legend style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: 14px; line-height: normal;
                padding-top: 10px; padding-bottom: 10px; text-indent: 2px;">导航栏目</legend>
            <table id="tableOldAttach" border="0" cellpadding="0" cellspacing="0">
            </table>
            <table class="tableForm" id="tableAttach">
                @{int idcount = 0;}
                @for (int i = 1; i < diccls.Count + 1; i++)
                {
                    string showstr = "";
                    idcount = i;
                    if (dicentry[i].Count > 0)
                    {
                        showstr = string.Join(",", dicentry[i].Select(h => h.Value));
                    }

                    string trid = "trid_" + idcount.ToString();
                    string strdel = "dellink(" + idcount.ToString() + ")";
                    <tr name='trAttach' id="@trid">
                        <th style="width: 10%; font-family: 宋体, Arial, Helvetica, sans-serif; font-size: small;">
                            主栏目
                        </th>
                        <td style="width: 30%" class="tdClass">
                            @Html.DevExpress().ButtonEdit(settings =>
                       {
                           settings.Name = "FirstDocCls_" + idcount.ToString();
                           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);

                           settings.Text = diccls[i].Value;
                           settings.Properties.Buttons.Add("选择目录");
                           settings.Properties.ClientSideEvents.ButtonClick = "function(s,e){chooseDocCls(" + i + ")}";


                       }).GetHtml()
                        </td>
                        <th style="width: 15%; font-family: 宋体, Arial, Helvetica, sans-serif; font-size: small;">
                            同时显示栏目
                        </th>
                        <td style="width: 30%" class="tdClass">
                            @Html.DevExpress().ButtonEdit(settings =>
                       {
                           settings.Name = "NextDocCls_" + idcount.ToString();
                           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);

                           settings.Text = showstr;
                           settings.Properties.Buttons.Add("选择目录");
                           settings.Properties.ClientSideEvents.ButtonClick = "function(s,e){chooseDocClsEntry(" + i + ")}";


                       }).GetHtml()
                        </td>
                        <td style="width: 15%" class="tdClass">
                            <a href="#" style="color: Red; font-size: 12px" onclick="@strdel">[删除]</a>
                        </td>
                    </tr>
                 
                }
            </table>
        </fieldset>
        
        <fieldset>
            <legend style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: 14px; line-height: normal;
                padding-top: 10px; padding-bottom: 10px;">顶部图片选择</legend>
            <br />
            <table width="100%" class="tableForm">
                <tr>
                    <th style="width: 15%; text-align: left; text-indent: 8px;">
                        @Html.DevExpress().Label(settings =>
                   {
                       settings.Text = "模板类型:";

                   }).GetHtml()
                    </th>
                    <td style="width: 85%">
                        @Html.DevExpress().ComboBox(settings =>
                   {
                       settings.Name = "modeSelect";
                       settings.Width = System.Web.UI.WebControls.Unit.Pixel(194);
                       settings.Properties.TextField = "Text";
                       settings.Properties.ValueField = "Value";

                       //settings.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
                       //settings.Properties.DropDownStyle = DropDownStyle.DropDown;

                       settings.Properties.ClientSideEvents.SelectedIndexChanged = "Changed";
                       settings.Properties.EnableClientSideAPI = true;
                   }).BindList(new List<SelectListItem>() { new SelectListItem() { Selected = true, Text = "图片模式", Value = "P" }, new SelectListItem() { Text = "flash模式", Value = "F" } }).Bind(ViewData["fmode"]).GetHtml()
                    </td>
                </tr>
            </table>
            <table class="tableForm" id="uploadtable">
                <tr style="display: block" id="pictr">
                    <th style="width: 15%; text-align: left; text-indent: 8px;">
                        @Html.DevExpress().Label(settings =>
                   {
                       settings.Text = "选择图片:";

                   }).GetHtml()
                    </th>
                    <td style="width: 35%" class="tdClass" id="picup">
                        @Html.DevExpress().UploadControl(
                            settings =>
                            {
                                settings.Name = "templTopPicPathUpload";
                                settings.BrowseButton.Text = "浏览";
                                settings.ClearFileSelectionImage.ToolTip = "清除选择";
                                settings.ShowProgressPanel = false;


                                // settings.ValidationSettings.Assign(ElingOA6_Admin_DSJCJ.Common.UploadControlHelper.PicValidationSettings);
                                settings.ShowUploadButton = false;
                                settings.ClientSideEvents.TextChanged = "function(s,e){previewTopImg()}";
                            }).GetHtml()
                             <br />
                   <p id="picjy" style="color: #FF0000">图片建议大小: 1000*150像素</p>
                    </td>
                    <th style="width: 15%">
                        @Html.DevExpress().Label(settings => { settings.Text = "预览:"; }).GetHtml()
                    </th>
                    <td style="width: 35%" class="tdClass">
                        <img id="imgTemplTopPicPath" src="@Url.Action("IndexImage", "SubOfficeDept", new { pt = ViewData["topic"].ToString() })" width="250px" height="100px" />
                  
                    </td>
                </tr>
                <tr style="display: none" id="flashtr">
                    <th style="width: 15%; text-align: left; text-indent: 8px;">
                        @Html.DevExpress().Label(settings =>
                   {
                       settings.Text = "选择文件:";

                   }).GetHtml()
                    </th>
                    <td style="width: 35%" class="tdClass" id="flashup">
                    </td>
                    <td style="width: 50%" class="tdClass" ><span id="isflashupload"></span></td>
                </tr>
            </table>
        </fieldset>
        
        
        <fieldset>
            <legend style="font-family: 宋体, Arial, Helvetica, sans-serif; font-size: 14px; line-height: normal;
                padding-top: 10px; padding-bottom: 10px;">模板选择 </legend>
            @{
                foreach (ElingOA6_Admin_DSJCJ.Model.SubOfficeTempCls cls in ViewData["tempclslist"] as List<ElingOA6_Admin_DSJCJ.Model.SubOfficeTempCls>)
                {
                    List<ElingOA6_Admin_DSJCJ.Model.SubOfficeTemplate> subtemp = (ViewData["templist"] as List<ElingOA6_Admin_DSJCJ.Model.SubOfficeTemplate>).Where(h => h.FTempClsCd == cls.FTempClsCd).ToList();
                    if (subtemp.Count > 0)
                    {   <div style="border-color: #A3C8E5; width: 90%; line-height: 33px; float: left;
                        border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid;">
                        <h3 style="float: left; font-size: 14px; padding-left: 10px; color: #3b639f">
                            @cls.FTempClsName</h3>
                        <ul style="width: 90%">
                            @{
             
                  
                        foreach (ElingOA6_Admin_DSJCJ.Model.SubOfficeTemplate t in subtemp)
                        {

                            string mbname = "模板" + @t.FTempID;
                            string rdbtnname = "moban" + @t.FTempID;
                            string shpop = "showpopup(" + Url.Content(@t.FThumbPath) + ")";
                                <li style="float: left; padding-left: 20px;">
                                    <table>
                                        @* <tr>
                                        <th colspan="2" align="left" style="text-align: center">@mbname
                                        </th>
                                    </tr>*@
                                        <tr>
                                            <td>
                                                <a href="@Url.Content(t.FThumbPath)" target="_blank" >
                                                    <img src='@Url.Action("IndexImage", "SubOfficeDept", new { pt = t.FThumbPath })'@*onmouseover="showDetails()"*@   style="width: 100px; height: 100px" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="margin-right: auto; margin-left: auto; text-align: center;">
                                                @Html.DevExpress().RadioButton(settings =>
                                       {
                                           settings.Name = rdbtnname;
                                           settings.GroupName = "rgroup";
                                           settings.Checked = t.FTempID == (ViewData["seldepttempid"].ToString());
                                       }).GetHtml()
                                            </td>
                                        </tr>
                                    </table>
                                </li>
                         
                        }
                            }
                        </ul>
                    </div>
                    }
                }
            }
        </fieldset>
        
@*  <div style="display: block; position: absolute;" id="details">
            <img width="260" height="260" id="popuppic" src="" onmouseout=" hideDetail()" />
           <p><input type="button" value="关闭" onclick="hideDetail()"/></p>
        </div>*@
           @Html.Hidden("tosavepic", ViewData["tosavepic"]);
        @Html.Hidden("toppic", ViewData["topic"]);
         @Html.Hidden("hdefpic", ViewData["defpic"]);                                        
        @Html.Hidden("hdDicEntryJson", ViewData["jsonentrys"]);
        @Html.Hidden("hDicClsJson", ViewData["jsondiccls"]);
        @Html.Hidden("hids", ViewData["ids"]);
        @Html.Hidden("hdeptno", ViewData["DeptNo"])
        @Html.Hidden("hDocClsPartial", @Html.Partial("DocClsPartial").ToHtmlString());
    }
</body>
</html>
